var twoSum = function (nums, target) {
  for (let i = 0; i < nums.length; i++) {
    if(nums[i]>target) continue
    for (let j = 0; j < nums.length && i != j ; j++) {
      if(nums[j]>target && nums[j]) continue
      if ((nums[i] + nums[j]) == target) {
        return [i, j]
      }
    }
  }
}

console.log(twoSum([-3,4,3,0], 0))
